package com.yykj.user.center.server.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author chenl
 * @version 1.0
 * @date 2021/11/5 23:39
 */
@Data
public class UpdateAddressForm {

    @NotBlank(message = "请传入Id")
    private String id;

    @NotBlank(message = "请传入就诊卡Id")
    @ApiModelProperty("就诊卡号ID")
    private String patientCardId;

    @NotBlank(message = "请传入就诊卡对应的姓名")
    private String patientName;

    @NotBlank(message = "请输入姓名")
    @ApiModelProperty("收件人姓名")
    private String recipientName;

    @NotBlank(message = "请输入详细地址")
    private String detailAddress;

    @NotBlank(message = "请输入手机号")
    private String mobile;

    private Boolean isDefault;

    @NotBlank(message = "请输入所在地区")
    private String area;

    @NotNull(message = "状态 1：有效 0：失效")
    private Boolean state;
}
